import { createRouter, createWebHashHistory } from 'vue-router';
import home from './home';
import user from './user'
import search from './search'
import song from './song'
import video from './video'
const routes = [
    ...home,
    ...user,
    ...search,
    ...song,
    ...video
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

router.afterEach((to, from, next) => {
    window.scrollTo(0 , 0);
})

export default router
